import * as Y from "yjs";
import { HocuspocusProvider } from "@hocuspocus/provider";

export const createProvider = (documentName: string) => {
  return new HocuspocusProvider({
    url: "ws://localhost:4333",
    name: documentName,
  });
};